package com.luchao.back.mapper;

import com.luchao.back.pojo.Types;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface TypesMapper {

    List<Types> getTypesByPage(@Param("startNum") int startNum, @Param("pageSize") int pageSize);

    int addTypes(Types types);

    int editTypes(Types Types);

    long getTypesCount();

    int checkTypes(String tname);

    List<Types> getAllTypes();

    int batchChangeState(List<Types> types);

    List<Types> getAllTypesForView();
}
